import Vue from 'vue'
import Router from 'vue-router'
import home from '@/pages/home/home.vue'
import find from '@/pages/find/find.vue'
import search from '@/pages/find/search.vue'
import fabu from '@/pages/find/fabu.vue'
import rank from '@/pages/rank/rank.vue'
import userCenter from '@/pages/userCenter/userCenter.vue'
import userEnroll from '@/pages/userCenter/userEnroll.vue'
import userCreate from '@/pages/userCenter/userCreate.vue'
import userForget from '@/pages/userCenter/userForget.vue'
import map from '@/pages/home/map.vue'
import xiaoxi from '@/pages/userCenter/xiaoxi.vue'
import details from '@/pages/find/details.vue'
import renzheng from '@/pages/userCenter/renzheng.vue'
import collections from '@/pages/userCenter/collections.vue'
import guanyuwomen from '@/pages/userCenter/guanyuwomen.vue'
import stuMsg from '@/pages/userCenter/stuMsg.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      //首页
      path: '/',
      name: 'home',
      component: home
    },
    {
      path: '/map',
      name: 'MyMap',
      component: map
      //地图定位
    },
    {
      path: '/find',
      name: 'find',
      component: find
      //发现
    },
    {
      path: '/search',
      name: 'search',
      component: search
      //搜索
    },
    {
      path: '/rank',
      name: 'rank',
      component: rank
      //排行榜
    },
    {
      path: '/userCenter',
      name: 'userCenter',
      component: userCenter,
      //个人中心
    },
    {
      path: '/userEnroll',
      name: 'userEnrolll',
      component: userEnroll
      //登陆中心
    },
    {
      path: '/userForget',
      name: 'userForget',
      component: userForget
      //忘记密码
    },
    {
      path: '/fabu',
      name: 'fabu',
      component: fabu
      //发布
    },
    {
      path: '/userCreate',
      name: 'userCreate',
      component: userCreate
      //注册
    },
    {
      path: '/xiaoxi',
      name: 'xiaoxi',
      component: xiaoxi
      //我的发布
    },
     {
      path: '/renzheng',
      name: 'renzheng',
      component: renzheng
      //学生认证
    },
    {
      path: '/details',
      name: 'details',
      component: details
    },
    {
      path: '/collections',
      name: 'collections',
      component: collections
      //我的收藏
    },
     {
      path: '/guanyuwomen',
      name: 'guanyuwomen',
      component: guanyuwomen
      //关于我们
    },
    {
      path: '/stuMsg',
      name: 'stuMsg',
      component: stuMsg
      //个人信息
    },


  ]
})
